package com.ruoyi.project.jiaqin.advertcontract.mapper;

import com.ruoyi.project.jiaqin.advertcontract.domain.JiaqinAdvertContract;

import java.util.List;

/**
 * 广告合同Mapper接口
 * 
 * @author LCL
 * @date 2021-10-28
 */
public interface JiaqinAdvertContractMapper 
{
    /**
     * 查询广告合同
     * 
     * @param id 广告合同ID
     * @return 广告合同
     */
    public JiaqinAdvertContract selectJiaqinAdvertContractById(String id);

    /**
     * 查询广告合同列表
     * 
     * @param jiaqinAdvertContract 广告合同
     * @return 广告合同集合
     */
    public List<JiaqinAdvertContract> selectJiaqinAdvertContractList(JiaqinAdvertContract jiaqinAdvertContract);

    /**
     * 新增广告合同
     * 
     * @param jiaqinAdvertContract 广告合同
     * @return 结果
     */
    public int insertJiaqinAdvertContract(JiaqinAdvertContract jiaqinAdvertContract);

    /**
     * 修改广告合同
     * 
     * @param jiaqinAdvertContract 广告合同
     * @return 结果
     */
    public int updateJiaqinAdvertContract(JiaqinAdvertContract jiaqinAdvertContract);

    /**
     * 删除广告合同
     * 
     * @param id 广告合同ID
     * @return 结果
     */
    public int deleteJiaqinAdvertContractById(String id);

    /**
     * 批量删除广告合同
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteJiaqinAdvertContractByIds(String[] ids);

    public List<JiaqinAdvertContract> findAdvertContractList(String memberId);

    public JiaqinAdvertContract findAdvertContractByMemberIdCooperateIdStatus(String memberId, String advertCooperateId, Integer status);

    public JiaqinAdvertContract findAdvertContractByOutTradeNo(String outTradeNo);

    public JiaqinAdvertContract findByOrderNo(String orderNo);

}
